﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OA.DBUtility;

namespace OA.Model
{
    [MappingTable("ProjectBillView")]
    public class ProjectBillInfoView : ProjectBillInfo
    {

    }

    [MappingTable("ProjectBill")]
    public class ProjectBillInfo
    {
        #region Model
        private int _id;
        private string _projectid;
        private string _contractaid;
        private DateTime? _billtime;
        private decimal? _billamount;
        private string _billcompany;
        private string _projectphase;
        private string _projectprecent;
        private string _calmethod;
        private string _state;
        private decimal? _billtotal;
        /// <summary>
        /// 
        /// </summary>
        [DataField("Id")]
        [PrimaryKey(PKBuildType.AutoIncrease)]
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectId")]
        public string ProjectId
        {
            set { _projectid = value; }
            get { return _projectid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ContractAId")]
        public string ContractAId
        {
            set { _contractaid = value; }
            get { return _contractaid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("BillTime")]
        public DateTime? BillTime
        {
            set { _billtime = value; }
            get { return _billtime; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("BillAmount")]
        public decimal? BillAmount
        {
            set { _billamount = value; }
            get { return _billamount; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("BillCompany")]
        public string BillCompany
        {
            set { _billcompany = value; }
            get { return _billcompany; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectPhase")]
        public string ProjectPhase
        {
            set { _projectphase = value; }
            get { return _projectphase; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectPrecent")]
        public string ProjectPrecent
        {
            set { _projectprecent = value; }
            get { return _projectprecent; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("CalMethod")]
        public string CalMethod
        {
            set { _calmethod = value; }
            get { return _calmethod; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("State")]
        public string State
        {
            set { _state = value; }
            get { return _state; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("BillTotal")]
        public decimal? BillTotal
        {
            set { _billtotal = value; }
            get { return _billtotal; }
        }
        #endregion Model
    }
}
